﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Winter.Core.DAL;

namespace Winter.Core.Service
{
    public abstract class GenericManager<T, ID> : IGenericManager<T, ID> where T : class
    {
        protected readonly IRepository<T> _repository;

        public GenericManager(IRepository<T> repository)
        {
            this._repository = repository;
        }

        public List<T> GetAll()
        {
            return this._repository.GetAll().ToList();
        }
    }
}
